#ifndef MYHANDLER_H
#define MYHANDLER_H

#include <BSphereHandler>

using namespace BWE;

class MyHandler : public BSphereHandler
{
public:
	MyHandler();
	~MyHandler();

	void setTarget(BObject* target);
	BObject* target() const;

protected:
	virtual void paint(BPainter& painter);
	virtual void render(BRender& render);

	virtual bool keyDownEvent(const BKeyEvent& keyEvent);
	virtual bool keyUpEvent(const BKeyEvent& keyEvent);

	virtual bool mousePressEvent(const BMouseEvent& mouseEvent);
	virtual bool mouseReleaseEvent(const BMouseEvent& mouseEvent);
	virtual bool mouseMoveEvent(const BMouseEvent& mouseEvent);

private:
	BObject*		_target;
	BObject*		_hoverObject;
};

#endif